<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
<style>
    #box{
        width: 80px;
        height: 20px;
        background-color: gainsboro;
        border: 1px solid rgb(220, 216, 216);
        color: gray;
        font-size: 12px;
        position: relative;
        display: none;
        
    }
    a{
        display: block;
    }
    a:hover{
        color: orange;
    }
</style>
</head>
<a href="">1.中国嫦娥飞天的一些感想</a>
<a href="">2.中国嫦娥飞天的一些感想</a>
<div id="box">我是一条提示</div>
<body>
    <script>
        var a = document.getElementsByTagName('a')[0]
        a.onmousemove=function(event){
            var e = event||window.event
            box.style.display = 'block'
            box.style.left =e.clientX+'px'
            box.style.top = e.clientY-30+'px'
        }
        a.onmouseleave=function(){
            
            box.style.display = 'none'
        
        }
    </script>
</body>
</html>